home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / dexter.swf / scripts / DefineButton2_751 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2003-10-24  |  349 b   |  23 lines

  1. on(press){
  2.    if(eval("/:gotbattery") != "1")
  3.    {
  4.       set("/:found","6");
  5.       tellTarget("/found")
  6.       {
  7.          gotoAndPlay(2);
  8.       }
  9.       tellTarget("/soundgotit")
  10.       {
  11.          gotoAndPlay(2);
  12.       }
  13.    }
  14.    else
  15.    {
  16.       tellTarget("/")
  17.       {
  18.          gotoAndStop("end");
  19.          play();
  20.       }
  21.    }
  22. }
  23.